package com.wlc.socket.demo01_v3;

import java.io.*;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Scanner;

public class Client {
  
    public static void main(String[] args) {
  

            // 和服务端建立连接
        try {
            Socket s = new Socket("127.0.0.1", 8888);
            // 创建2个线程
            new SendThread(s).start();
            new ReciveThread(s).start();
        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
